//package com.hmtech.ayp.contoller;
//
//import cn.dev33.satoken.stp.SaTokenInfo;
//import cn.dev33.satoken.stp.StpUtil;
//import com.hmtech.ayp.common.resp.R;
//import com.hmtech.ayp.domain.vo.UserVO;
//import com.hmtech.ayp.service.IUserService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/api/users")
//public class UserController {
//    @Autowired
//    private IUserService userService;
//
//    @RequestMapping("/info")
//    public R<UserVO> getUserInfo() {
//        SaTokenInfo saTokenInfo = StpUtil.getTokenInfo();
//        Long id = Long.parseLong((String) saTokenInfo.getLoginId());
//        return R.ok(userService.getOneVOById(id));
//    }
//}
